<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-type" content="text/html; charset=utf-8">
	</head>
	<body>
		<h1>Form Testing</h1>
		<form action="" method="post" accept-charset="utf-8">
			<dl>
				<?php foreach($form as $field): ?>

					<dt><?=$field['labelTag']?></dt>

					<dd><?=$field['field'] ?></dd>

					<?php if(count($field['errors'])):?>

						<?php foreach($field['errors'] as $error): ?>

							<dd class="error"><?=$error?></dd>

						<?php endforeach; ?>

					<?php endif; ?>

				<?php endforeach; ?>
			</dl>
			<p><input type="submit" value="Continue &rarr;"></p>
		</form>
	</body>
</html>
